package com.sgb.kjwl.api.service;

import com.sgb.kjwl.model.entity.self.VipPriceMangeListEntity;
import com.swgk.core.base.model.entity.BaseEntity;
import com.swgk.core.base.model.entity.ListResponse;

import java.util.HashMap;
import java.util.List;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Url;

public interface MemberPriceApi {

    /**
     * 获取供应商会员价格商品列表
     * @return
     */
    @POST("item/member/getPageList")
    Call<BaseEntity<ListResponse<List<VipPriceMangeListEntity>>>> getMemberPriceGoodsPageList(@Body HashMap<String,Object> body);

    /**
     * 结束会员价
     * item/member/finishItemMemberPrice/{itemId}/{itemMemberId}
     */
    @POST()
   Call<BaseEntity> coloseMemberPrice(@Url String url);


    /**
     * 设置会员价-商品列表
     * @param body
     * @return
     */
    @POST("item/member/goods/list")
    Call<BaseEntity<ListResponse<List<VipPriceMangeListEntity>>>> getCanSetGoodsList(@Body HashMap<String,Object> body);
    /**
     * 再次设置权限验证
     *item/member/againItemMemberPrice/{itemId}/{itemMemberId}
     */
    @POST()
    Call<BaseEntity> iscanSetingAgin(@Url String url);

    /**
     * 根据商品id获取sku列表(设置商品会员价格使用)
     * item/member/sku/list/{itemId}
     */
    @GET()
    Call<BaseEntity> getGoodsSku(@Url String url);
}
